<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<c:set var="path" value="${pageContext.request.contextPath }" />
<%@ taglib tagdir="/WEB-INF/tags" prefix="matrix"%>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp">
     <meta name="keywords" content="${keyword}"  >
    <meta name="description" content="${description }" />
    <title>企业新闻-湖南卓景京信息技术有限公司</title>
    <!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <link href="${path }/resource/plugin/bootstrap-3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="${path }/resource/plugin/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="${path }/resource/css/visitor/base.css" rel="stylesheet" type="text/css">
    <link href="${path }/resource/css/visitor/news.css" rel="stylesheet" type="text/css">
    <link rel="shortcut icon" href="${path }/resource/images/favicon.ico">
    <style type="text/css">
    .art{
    	display: none;
    }
    </style>
</head>
<body class="">

<jsp:include page="_top.jsp"></jsp:include>
<div class="w">
<div class="container">
	
	 
	<div class="news"  id="showdataBox">
           
           
	</div>
	 <div id="pagingBox" class="pages"></div>
	
</div>
</div>
<form class="am-form am-form-horizontal"  id="dataform" onsubmit="javascripr:return false;">
<input type="hidden" name="offset" id="_offset"  value="0" />
<input type="hidden" id="limit" name="limit"   value="10" />
</form>
<jsp:include page="_foot.jsp"></jsp:include>
<script type="text/javascript" src="${path }/resource/js/plugin/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="${path }/resource/plugin/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${path }/resource/js/systools/AjaxProxy.js"></script>
<script type="text/javascript" src="${path }/resource/js/systools/Pagination.js"></script>
<script type="text/javascript" src="${path }/resource/js/systools/MTools.js"></script>
<script type="text/javascript" src="${path }/resource/js/systools/MForm.js"></script>
<script type="text/javascript" src="${path }/resource/js/plugin/carousel.js"></script>
<script type="text/javascript" src="${path }/resource/plugin/layer/layer.js"  ></script>
<script>
$(function(){
	var pageSize=$("#limit").val();
	Pagination.init({
		url:"${path}/visitor/findNews",
		pageSize : pageSize,
		builderDate:function(loj){
			var initType=$("#order-select").val();
			if(loj.getRowCount()>0){
				//构建数据
				var html=[];
				for(var i=0 ; i<loj.getRowCount(); i++ ){
					html[i]=' <div class="news-list">'+
               ' <div class="news-list-info">'+
               '     <h3><a href="${path}/visitor/article?id='+loj.getString(i,"artId")+'">'+loj.getString(i,"artTitle")+'</a></h3>'+
               '     <p>'+loj.getString(i,"artAbstract")+'</p>'+
                '    <span>'+loj.getDate(i,"artCreatetiem")+'</span>'+
               ' </div>'+
               ' <div class="news-list-pic">'+
                '    <img src="'+loj.getString(i,"artImage")+'" alt="">'+
                '</div>'+
            '</div>'
				}
				return html.join("");
			}			
		}
	}).serchDate();
})
</script>
</body>
</html>